﻿using System;
using System.Collections.Generic;
using System.Text;
using AnguaRPGEngine.Library.Dice;

namespace AnguaRPGEngine.Library.Systems
{
    internal class Dice
    {
        public int Number;
        public IDie Die;
        public int Result
        {
            get
            {
                int total = 0;
                for (int n = 0; n < Number; n++)
                {
                    Die.Roll();
                    total += Die.Value;
                }
                return total;
            }
        }
        public Dice(int number, IDie die)
        {
            this.Number = number;
            this.Die = die;
        }
    }
}
